package com.jshan.blog.base.admin.dto;

import com.jshan.blog.valid.AddGroupValid;
import com.jshan.blog.valid.UpdateGroupValid;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "角色添加使用的Dto")
public class SysRoleResDto {

    /**
     * 角色id
     */
    @Schema(description = "角色 id")
    @NotNull(message = "角色 id 不能为空", groups = {UpdateGroupValid.class})
    private Integer id;

    /**
     * 角色名称
     */
    @Schema(description = "角色名称")
    @NotBlank(message = "角色名称不能为空", groups = {AddGroupValid.class, UpdateGroupValid.class})
    private String roleName;

    /**
     * 简介
     */
    @Schema(description = "简介")
    private String remark;

    /**
     * 标识，唯一
     */
    @Schema(description = "标识，唯一")
    private String permissions;

}
